package com.jurenzhao.partssystem.business.order_enterprise.entity;

import java.util.Date;

public class SaleOrder {
    private String orderId;

    private String userId;

    private String orderNo;

    private Date orderDate;

    private String makeCarNo;

    private String orderState;

    private String custState;

    private String busiState;

    @Override
    public String toString() {
        return "SaleOrder{" +
                "orderId='" + orderId + '\'' +
                ", userId='" + userId + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", orderDate=" + orderDate +
                ", makeCarNo='" + makeCarNo + '\'' +
                ", orderState='" + orderState + '\'' +
                ", custState='" + custState + '\'' +
                ", busiState='" + busiState + '\'' +
                '}';
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo.trim();
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public String getMakeCarNo() {
        return makeCarNo;
    }

    public void setMakeCarNo(String makeCarNo) {
        this.makeCarNo = makeCarNo == null ? null : makeCarNo.trim();
    }

    public String getOrderState() {
        return orderState;
    }

    public String getOrderStateString() {
        return orderState.equals("0") ? "未成功处理":"已成功处理";
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState == null ? null : orderState.trim();
    }

    public String getCustStateString() {
        return custState.equals( "0" )? "未确认":"确认";
    }
    public String getCustState() {
        return custState;
    }

    public void setCustState(String custState) {
        this.custState = custState == null ? null : custState.trim();
    }

    public String getBusiState() {
        return busiState;
    }

    public String getBusiStateString() {
        return busiState.equals("0") ? "未处理":"已处理";
    }

    public void setBusiState(String busiState) {
        this.busiState = busiState == null ? null : busiState.trim();
    }
}